package com.callbox.frontend;


import com.callbox.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainDashboard extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_dashboard);	

        Button btn_messages = (Button) findViewById(R.id.btn_messages);
              
       /* Button btn_contacts = (Button) findViewById(R.id.btn_contacts);*/
        
      
        Button btn_records = (Button) findViewById(R.id.btn_records);
        
       
        Button btn_settings = (Button) findViewById(R.id.btn_settings);
        
       
        /**
         * Handling all button click events
         * */
        
        // Listening to News Feed button click
        btn_messages.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View view) {
				// Launching News Feed Screen
				Intent i = new Intent(getApplicationContext(),MessageActivity.class);
				startActivity(i);
			}
		});
        
       // Listening Friends button click
        /*btn_contacts.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View view) {
				// Launching News Feed Screen
				Intent i = new Intent(getApplicationContext(), ContactsActivity.class);
				startActivity(i);
			}
		});*/
        
        // Listening Messages button click
        btn_records.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View view) {
				// Launching News Feed Screen
				Intent i = new Intent(getApplicationContext(), RecordsActivity.class);
				startActivity(i);
			}
		});
        
        // Listening to Places button click
        btn_settings.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View view) {
				// Launching News Feed Screen
				//Intent i = new Intent(getApplicationContext(), SettingsActivity.class);
				Intent i = new Intent(getApplicationContext(), AutoAnswerPreferenceActivity.class);
				
				startActivity(i);
			}
		});
	}
	
}
